package com.qzsf.backend.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;



/*
 * @Author: Dennis Chen
 * @CreateTime: 2024/10/30 16:24 周三
 * @Email 1429278462@qq.com
 * @Remark 志愿活动实体类
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Event implements Serializable {
    private int id;
    private int typeId;
    private String name;
    private int number;
    private int remaining;
    private String location;
    private String description;
    private String pics;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    private double hours;
    private int authId;
}
